//
//  RQContentTableViewCell.swift
//  RuiQue-Swift
//
//  Created by xiute on 2018/10/31.
//  Copyright © 2018 cuijin. All rights reserved.
//

import UIKit

class RQContentTableViewCell: UITableViewCell {

    @IBOutlet weak var EOSLabel: UILabel!
    @IBOutlet weak var BTCLabel: UILabel!
    @IBOutlet weak var VolLabel: UILabel!
    @IBOutlet weak var decimalLabel: UILabel!
    @IBOutlet weak var dollarLabael: UILabel!
    
    
    override func awakeFromNib() {
        super.awakeFromNib()
        self.selectionStyle = UITableViewCell.SelectionStyle.none
    }
    
    public func config(data: RQModel) {
        self.EOSLabel.text = data.baseAssetName
        self.BTCLabel.text = "/" + " " + data.quoteAsset!
        let numberF = NumberFormatter()
        numberF.numberStyle = NumberFormatter.Style.decimal
        self.VolLabel.text = "Vol" + " " + numberF.string(from: data.tradedMoney!)!
        
        self.decimalLabel.text = data.high
        self.dollarLabael.text = "$" + " " + numberF.string(from: data.tradedMoney!)!
        
    }

}
